package com.huqing.icu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huqing.icu.model.HouseInteractionPanel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HouseInteractionPanelMapper extends BaseMapper<HouseInteractionPanel> {

    HouseInteractionPanel selectByHouseId(@Param("houseId") Long houseId);

    List<HouseInteractionPanel> selectByHouseIdList(@Param("houseIdList") List<Long> houseIdList);

    Integer incrActualViewCount(@Param("id") Long id);

    Integer incrActualViewUserCount(@Param("id") Long id);

    Integer decrActualViewUserCount(@Param("id") Long id);

    Integer incrActualClickCount(@Param("id") Long id);

    Integer decrActualClickCount(@Param("id") Long id);

    Integer incrActualLikeCount(@Param("houseId") Long houseId);

    Integer decrActualLikeCount(@Param("houseId") Long houseId);

    Integer incrActualFavoriteCount(@Param("houseId") Long houseId);

    Integer decrActualFavoriteCount(@Param("houseId") Long houseId);


    Integer incrActualCommentCount(@Param("id") Long id);

    Integer decrActualCommentCount(@Param("id") Long id, @Param("count") Integer count);
}
